<template>
  <div class="winding-wrap">
    <div class="chose-course-top">
      <a-icon
        class="base-color back-arrow"
        type="arrow-left"
        @click="() => this.$router.push('/reverse')"
      />
      <div class="course-title"></div>
      <div class="btn-group"></div>
    </div>
    <div class="skill-content">
      <div class="skill-info">
        <iframe
          width="100%"
          height="100%"
          scrolling="no"
          class="frame-report"
          :src="url"
          frameborder="0"
        ></iframe>
      </div>
    </div>
    <Timetips ref="timetips"></Timetips>
  </div>
</template>
<script>
import Timetips from "@/components/Timetips";
export default {
  components: {
    Timetips
   },
  data() {
    return {};
  },
  computed: {
    url() {
      let url = window.decodeURIComponent(this.$route.fullPath);
      url = url.replace("from=1", "from=2").split("reportUrl=")[1];
      return url ? url : "";
    },
  },
  created() {},
  mounted() {

  },
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  
  beforeDestroy() {
    this.$refs.timetips.stopTimer();
    this.$refs.timetips.stopEndTimer();
  },
  destroyed() {},
  activated() {},
};
</script>
<style lang="less" scoped>
/* @import url(); 引入公共css类 */
.winding-wrap {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
  min-width: 1400px;
  .chose-course-top {
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    background-color: #fff;
    .anticon {
      font-size: 24px; /* no */
    }
    .back-arrow {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .course-title {
      width: 100%;
      flex: 1;
    }
    .btn-group {
      flex: 1;
      display: flex;
    }
  }
  .skill-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    .skill-info {
      width: 1400px;
      height: 946px;
    }
  }
}
</style>
